package com.skyolder.milkbee.service.dto;

import java.time.ZonedDateTime;
import java.io.Serializable;
import java.util.Objects;


/**
 * A DTO for the Present entity.
 */
public class PresentDTO implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 4697885793861454098L;

	private Long id;

    private Long giftId;

    private ZonedDateTime createdAt;

    private String title;

    private String reason;

    private Integer cost;

    private Long senderId;

    private Long senderLeaguerId;

    private Long recieverId;

    private Long recieverLeaguerId;

    private String senderNike;
    
    private String recieverNike;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getGiftId() {
        return giftId;
    }

    public void setGiftId(Long gitId) {
        this.giftId = gitId;
    }
    public ZonedDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(ZonedDateTime createdAt) {
        this.createdAt = createdAt;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
    public Integer getCost() {
        return cost;
    }

    public void setCost(Integer cost) {
        this.cost = cost;
    }
    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }
    public Long getSenderLeaguerId() {
        return senderLeaguerId;
    }

    public void setSenderLeaguerId(Long senderLeaguerId) {
        this.senderLeaguerId = senderLeaguerId;
    }
    public Long getRecieverId() {
        return recieverId;
    }

    public void setRecieverId(Long recieverId) {
        this.recieverId = recieverId;
    }
    public Long getRecieverLeaguerId() {
        return recieverLeaguerId;
    }

    public void setRecieverLeaguerId(Long recieverLeaguerId) {
        this.recieverLeaguerId = recieverLeaguerId;
    }
    public String getRecieverNike() {
        return recieverNike;
    }

    public void setRecieverNike(String recieverNike) {
        this.recieverNike = recieverNike;
    }
    public String getSenderNike() {
    	return senderNike;
    }
    
    public void setSenderNike(String senderNike) {
    	this.senderNike = senderNike;
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        PresentDTO presentDTO = (PresentDTO) o;

        if ( ! Objects.equals(id, presentDTO.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "PresentDTO{" +
            "id=" + id +
            ", giftId='" + giftId + "'" +
            ", createdAt='" + createdAt + "'" +
            ", title='" + title + "'" +
            ", reason='" + reason + "'" +
            ", cost='" + cost + "'" +
            ", senderId='" + senderId + "'" +
            ", senderLeaguerId='" + senderLeaguerId + "'" +
            ", recieverId='" + recieverId + "'" +
            ", recieverLeaguerId='" + recieverLeaguerId + "'" +
            ", recieverNike='" + recieverNike + "'" +
            ", senderNike='" + senderNike + "'" +
            '}';
    }
}
